
$(function () {
	var activityId_hidden = $("#activityId").val();
	//加载已存在的简介
	var editor = CKEDITOR.replace("content");
	editor.setData($("#activityAbstart").val());
	
	
	//保存活动简介(活动规则)
    $("[name='btn_save_activityAbstract']").click(function () {
    	var stem = CKEDITOR.instances.TextArea1.getData();
    	var activityId = activityId_hidden;
        
        var activity = {id: activityId,introduction:stem};
        $.putJsonBody("/activity/updateActivityAbstract",activity, function (re) {
        	bootbox.balert("保存成功!");
        });
    });
    
    
  //取消活动简介
    $("[name='btn_cancel_activityAbstract']").click(function(){
    	window.location.href="/activity";
    });
    
    
  
    
  
    
    
});
    

   


